<%-- 
    Document   : PatientProfile
    Created on : Apr 1, 2012, 12:41:45 PM
    Author     : David
--%>

<%@page import="java.text.SimpleDateFormat"%>
<%@page import="edu.uta.tsrh.specialnotes.controllers.RecordController"%>
<%@page import="edu.uta.tsrh.specialnotes.misc.PatientRecord"%>
<%@page import="edu.uta.tsrh.specialnotes.misc.PatientNote"%>
<%

String patientId = request.getParameter("patient");
PatientRecord pRecord = RecordController.getPatientRecord(patientId);
Timestamp tm = (new Timestamp((new Date()).getTime()));
String time = new SimpleDateFormat("EEE, MM/d/yyyy 'at' kk:mm zzzz").format(tm);
%>

<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*"%> 
<%@page import="java.util.Date"%>
<%@page import="model.PatientInfo" %>
        <link rel="stylesheet" type="text/css" href="../css/basic.css" />
        <div class="mainPanel">   
            <div class="panel">
                <h2>Add Note for <%= pRecord.getFirstName() %> <%= pRecord.getLastName() %></h2> 
                <form method="post" action="AddNote">
            <ul class="infoPanel">
                <li>
                    <div><b><%= time%></b></div>
                    <input type='hidden' name='date' class='textField' value="<%=tm%>" />
                </li>
                <li>
                    <div class='name'>Subject/Title:</div><br> 
                    <div class='value'><input type='text' name='title' class='textbox' style="width: 300px" /></div>
                </li>
                <li>
                    <div class='name'>Source (optional):</div><br> 
                    <div class='value'><input type='text' name='source' class='textbox' style="width: 300px" /></div>
                </li>
                <li>
                    <div class='name'>Content of Note:</div><br> 
                    <div class='value'><textarea name='content' class='textarea' style="width: 300px" ></textarea></div>
                </li>
                <li><input type="hidden" name='patient' value="<%= patientId %>" /><li>
            </ul>
                <input type='submit' class="blue button linkButton" value="Save" />
                </form>
            </div>
        </div>